#include "EventManager.h"
#include "Events.h"

using namespace neiderra::gui;
using namespace neiderra::core;

EventManager::EventManager(Core* core): Base(core)
{
}

EventManager::~EventManager()
{
}

void EventManager::pushEvent(iGUIEvent* event)
{
	events_.push(event);
}

iGUIEvent* EventManager::nextEvent()
{
	iGUIEvent* event=0;
	if(!events_.empty())
	{
		event = events_.front();
		events_.pop();
	}
	return event;
}

